package jk.zmn.thread.create;

/**
 * @author 张梦楠
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: ${todo}
 * @date 2018/5/2614:28
 * @blog www.itzmn.com
 *
 * 线程创建，
 *  继承Thread类，重写run方法
 */
public class ThreadDemo1 extends Thread{

    private String name;

    public ThreadDemo1(String name){
        this.name = name;
    }

    @Override
    public void run() {
        System.out.println("hello "+name);
    }
}
